﻿using System.Collections.Generic;
using System.Web.Http;
using Hx.Application.Implementation;
using Hx.DataTransferObject;

namespace Hx.WebSite.WebApi
{
    [Authorize]
    public class CategoryController : ApiController
    {
        private readonly CategoryImplementation _categoriyImpl = new CategoryImplementation();

        [HttpGet]
        public List<CategoryObject> All()
        {
            return _categoriyImpl.AllCategories();
        }
    }
}